package cn.two.dao;

import java.util.List;
import java.util.Map;

import cn.two.model.OaBuy;

public interface OaBuyDao {

	/**
	 * 查询所有
	 * 
	 * @return
	 */
	public List<OaBuy> selectAllBuy();

	public List<OaBuy> search(OaBuy oaBuy);

	/**
	 * 查询单个
	 * @param oaBuy
	 * @return
	 */
	public OaBuy findOaBuy(OaBuy oaBuy);
	
	/**
	 * 新增
	 * @param oaBuy
	 */
	public void save(OaBuy oaBuy);

	/**
	 * 修改
	 * @param oaBuy
	 */
	public void update(OaBuy oaBuy);

	/**
	 * 删除
	 * @param oaBuy
	 */
	public void delete(OaBuy oaBuy);

	/**
	 * 模糊查询匹配的用户列表
	 */
	public List<Object> getLikeOaBuys(Map<String, Object> oaBuy);

	/**
	 * 模糊查询匹配的用户的数量
	 */
	public Integer getLikeOaBuysCount(Map<String, Object> oaBuy);

}
